package com.lyq.basic.mapper;

import com.lyq.basic.query.BaseQuery;

import java.io.Serializable;
import java.util.List;

/**
 * @Author:liangyunqian
 * @Date: 2022/12/20  19:13
 * @Description:
 */
public interface BaseMapper<T> {

    //=================基本方法crud===================
    void insert(T t);

    void deleteById(Serializable id);

    void update(T t);

    List<T> getAll();

    T getById(Serializable id);

    void batchDelete(List<Long> ids);
    //================分页查询=========================
    Long selectTotal(BaseQuery query);

    List<T> selectRows(BaseQuery query);

}
